import { defHttp } from '/@/utils/http/axios'
import { BannerParams, BannerListGetResultModel } from './model/tableModel'

enum Api {
  BANNER_LIST = '/getBanner',
}

/**
 * @description: Get sample list value
 */

export const getBanner = (params: BannerParams) =>
  defHttp.get<BannerListGetResultModel>({
    url: Api.BANNER_LIST,
    params,
    headers: {
      // @ts-ignore
      ignoreCancelToken: true,
    },
  })
